package yws01.Business;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import yws01.DAO.ChekaDAO;
import yws01.Model.Cheka;

@Service
public class SaleServiceCheka {

    ChekaDAO chekaDAO;
    @Autowired
    public void setChekaDAO(ChekaDAO chekaDAO) {this.chekaDAO = chekaDAO;}
    @Transactional
    public void Chekainsrt(Cheka cheka){chekaDAO.insertCheka(cheka);}
    public void Chekamodify(Cheka cheka){chekaDAO.modifyCheka(cheka);}
    public Cheka Chekaquery(Cheka cheka){System.out.println(chekaDAO.queryCheka(cheka));return chekaDAO.queryCheka(cheka);}
    public void Chekashengji(Cheka cheka){chekaDAO.Chekashengji(cheka);}
    public void Chekashengji1(Cheka cheka){chekaDAO.Chekashengji1(cheka);}
}
